
export default function Reg(){



  const submit=(e:any)=>{

      //  console.log(e.target.elements);
       const {userName,passWorld}=e.target;
       console.log(userName.value);
       console.log(passWorld.value);

       e.preventDefault();
       
  }

  return(
      <form onSubmit={submit}>
      <div>注册页面</div>
      <div>账号<input name='userName' type="text" /></div>
      <div>密码<input name='passWorld' type="password" /></div>
      <div><button type="submit">注册</button></div>
      </form>
  )
}